package com.gzw.scm;

import android.app.Application;
import android.content.Context;

import com.gzw.scm.bean.UserInfo;

/**
 * Created by GaoZhiWei on 2015/12/22.
 */
public class MyApplication extends Application {
    private static Context mContext;
    private static boolean isRemember;
    private static UserInfo userInfo;
    private static boolean isUserLogin = false;
    private static int flag = -1;

    @Override
    public void onCreate() {

        super.onCreate();
        mContext=getApplicationContext();
    }


    public static Context getmContext() {
        return mContext;
    }

    public static void setmContext(Context mContext) {
        MyApplication.mContext = mContext;
    }

    public static UserInfo getUserInfo() {
        return userInfo;
    }

    public static void setUserInfo(UserInfo userInfo) {
        MyApplication.userInfo = userInfo;
    }

    public static boolean getIsUserLogin() {
        return isUserLogin;
    }

    public static void setIsUserLogin(boolean isUserLogin) {
        MyApplication.isUserLogin = isUserLogin;
    }

    public static int getFlag() {
        return flag;
    }

    public static void setFlag(int flag) {
        MyApplication.flag = flag;
    }

    public static boolean isRemember() {
        return isRemember;
    }

    public static void setIsRemember(boolean isRemember) {
        MyApplication.isRemember = isRemember;
    }

    public static boolean isUserLogin() {
        return isUserLogin;
    }
}
